﻿<Page
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:SuspendApp.Views"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:prism="using:Microsoft.Practices.Prism.StoreApps"
    xmlns:ViewModels="using:SuspendApp.ViewModels"
    xmlns:mvvm="using:Microsoft.Practices.Prism.Mvvm"
    x:Class="SuspendApp.Views.MainPage"
    mvvm:ViewModelLocator.AutoWireViewModel="True"
    mc:Ignorable="d" 
    d:DataContext="{d:DesignInstance ViewModels:MainPageViewModel, IsDesignTimeCreatable=True}">
    <Page.BottomAppBar>
        <CommandBar>
            <AppBarButton Icon="Forward" Label="Goto next" Command="{Binding GotoNextCommand, Mode=OneWay}"/>
        </CommandBar>
    </Page.BottomAppBar>

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <TextBlock TextWrapping="Wrap" Style="{StaticResource HeaderTextBlockStyle}" Margin="10,10,10,0">
			<Run Text="Restore app"/>
			<LineBreak/>
			<Run/>
        </TextBlock>
        <TextBox Grid.Row="1" 
                 TextWrapping="Wrap" 
                 Text="{Binding Input, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" 
                 Margin="10,0" 
                 VerticalAlignment="Top"/>

    </Grid>
</Page>
